home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F39496_composeflist.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-06  |  924 b   |  29 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xalan="http://xml.apache.org/xalan"
  4. >
  5.   
  6.   <xsl:template name="compose-flist">
  7.     <xsl:param name="pFunList" select="/.."/>
  8.     <xsl:param name="pArg1"/>
  9.     
  10.     <xsl:choose>
  11.       <xsl:when test="not($pFunList)">
  12.         <xsl:copy-of select="$pArg1"/>
  13.       </xsl:when>
  14.       <xsl:otherwise>
  15.         <xsl:variable name="vrtfFunRest">
  16.           <xsl:call-template name="compose-flist">
  17.             <xsl:with-param name="pFunList" select="$pFunList[position() > 1]"/>
  18.             <xsl:with-param name="pArg1" select="$pArg1"/>
  19.           </xsl:call-template>
  20.         </xsl:variable>
  21.         
  22.         <xsl:apply-templates select="$pFunList[1]">
  23.           <xsl:with-param name="pArg1" select="xalan:nodeset($vrtfFunRest)/node()"/>
  24.         </xsl:apply-templates>
  25.       </xsl:otherwise>
  26.     </xsl:choose>
  27.  
  28.   </xsl:template>
  29. </xsl:stylesheet>